/**
 * @Date: 2022-04-05 19:47:55
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-04-11 16:36:39
 * @FilePath: \weibo-api\routes\index.js
 * @Description: something
 */
// @ts-nocheck
const router = require("koa-router")();
const { upload } = require("../controller/utils");
router.prefix("/api");
router.post("/upload", async (ctx, next) => {
  const file = await upload(ctx);
  ctx.body = file;
});

module.exports = router;
